Hello there.
Welcome to this video on Javascript datatypes.
Javascript uses several data types to create applications programs in this field.
I am going to go through some of the common data types use by javascript.
There are others but I'm just going to cover some of the common ones.
All right.
These are somewhat the common data types used in javascript.
First one is this string string refers to any data that is regarded as text so a collection of text
is known as a string.
And in javascript and in some programming languages you have to close your strings or text in quotes
as I've done here with John.
So anything that is the text that you use in Javascript you must close out with quotes in javascript.
You can use high double quotes or single quotes but you can't mix them.
You can for example start with a double quote and then end it with a single quote just won't work.
You have to maintain the type of quotes you use right so that's what string do.
Then you've got the number data number refers to numeric data.
For example why 7 7 saw anything that numerical is referred to as in No data type.
This also includes decimals like three point eight.
Next you've got baldly in bullion is any data that returns true or fours value.
For example is 2 greater than 1 that would return true and so on.
So any data you need to determine if it is true or false is regarded as a boolean.
Next we are on to the three and a really is a piece of data or estorra Each label that stores multiple
values as one.
For example you have a label called fruits and inside that fruit you will store apples grapes berries
and so on.
And you identify and agree with the square brackets so you can see the square brackets in red.
You use that to identify that you are dealing with an array with a raise.
The values are indexed from 0 for example.
The first value is zero and then 1 and 2.
So if you want to call this a reference this apple you do fruit's a square braggers and then 0.
That would mean you were referring to the Apple Apple inside the fruits.
So this is how you will create a very and they are used to store multiple data as one value.
Next is the law.
The law basically means the value does not exist doesn't exist for example you are filling out an online
form as something that requires a piece of data that you haven't got the javascript application would
treat that as a NOL value.
For example if you have an e-mail address column and you no longer know the email of that person or
email address doesn't work you can insert in log value in that field.
So that's what normal means.
You can also empty it value by setting it or not.
So this sign here is used to set something so you can have an e-mail address that no longer functions.
It just said that to not means is empty.
So this is a brief description of the sum of the on Javascript data types.
In this video I went through some of the mine data types used in Javascript javascript uses various
data types to create applications and perform various functions.
These are just some of the common ones.
There are others but this will do for a start.
I hope the new has made sense if it hasn't.
Please feel free to let me know and be I'll be more than happy to explain or help in whatever way I
can.
Thank you so much for your help for your time.
Take care.
Bye for now.